import {api} from './libs/api.js';
let _self;
export const index =  {
	data() {
		return {
			optLock:false,
			params:{},
			icons:{"50":uni.upx2px(50),"60":uni.upx2px(60),"40":uni.upx2px(40)},
			product:{}
		}
	},
	
	mounted() {
		_self = this;
	},
	onReachBottom:function(e){
		/*this.params.page+=1;
		this.initData();*/
	},
	onLoad:function(option) {
		this.params=option;
		//this.tabSubItem=option.status;
	},
	
	methods: {
		async initData(){
			if(this.params["code"]){
				let scanInfo=await api.scanCodeInfo({"code":this.params["code"]});			
				this.product=scanInfo["product"];
			}
			//console.log("dd");
		},
			
	},
}